﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Category.aspx.cs" Inherits="BackEnd.Category" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
	<title></title>
	<link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<form id="form1" runat="server">
	<div class="main">

		<div class="login">
			<h4>Category</h4>
			<asp:Label ID="lblName" CssClass="lblLog" runat="server" Text="Name" Width="70px" /> 
			<asp:TextBox ID="tbxName" CssClass="txbLog" runat="server" />

			<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbxName" Display="Dynamic" >
				<img src="Images/errorInput.png" /> Not filled
			</asp:RequiredFieldValidator>

			<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="tbxName" Display="Dynamic"
				ValidationExpression="[А-Яа-я][А-Яа-я- \w]{2,99}" >
				<img src="Images/errorInput.png" /> Invalid value
			</asp:RegularExpressionValidator> 
		</div>

		<div class="login">
			<asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" Width="100px"/>&nbsp;&nbsp;
			<asp:Button ID="btnCancel" runat="server" Text="Cancel" OnClick="btnCancel_Click" CausesValidation="false" Width="100px" />
		</div>

		<div class="clear">
		</div>

	</div>
	</form>
</body>
</html>
